package lab02.test25;

import java.util.Scanner;

public class Test25 {
    public static void main(String[] args) {
        while (true) {
            System.out.println("请输入两个数.");
            Scanner in = new Scanner(System.in);
            int number1 = in.nextInt();
            int number2 = in.nextInt();
            try {
                int number3 = number1 / number2;
                System.out.println(number1 + "/" + number2 + "=" + number3);
            } catch (ArithmeticException e) {
                System.out.println("除数为0，请重新输入.");
            }
        }
    }
}